package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Dbd {
    private String dbdid;
    private String type;
    private String pm;
    private String scpc;
    private Double sddbsl;
    private Integer bcdbsl;
    private String ckr;
    private Date ckrq;
    private Integer sqsl;
    private String clqk;

    @Id
    @Column(name = "dbdid")
    public String getDbdid() {
        return dbdid;
    }

    public void setDbdid(String dbdid) {
        this.dbdid = dbdid;
    }

    @Basic
    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "pm")
    public String getPm() {
        return pm;
    }

    public void setPm(String pm) {
        this.pm = pm;
    }

    @Basic
    @Column(name = "scpc")
    public String getScpc() {
        return scpc;
    }

    public void setScpc(String scpc) {
        this.scpc = scpc;
    }

    @Basic
    @Column(name = "sddbsl")
    public Double getSddbsl() {
        return sddbsl;
    }

    public void setSddbsl(Double sddbsl) {
        this.sddbsl = sddbsl;
    }

    @Basic
    @Column(name = "bcdbsl")
    public Integer getBcdbsl() {
        return bcdbsl;
    }

    public void setBcdbsl(Integer bcdbsl) {
        this.bcdbsl = bcdbsl;
    }

    @Basic
    @Column(name = "ckr")
    public String getCkr() {
        return ckr;
    }

    public void setCkr(String ckr) {
        this.ckr = ckr;
    }

    @Basic
    @Column(name = "ckrq")
    public Date getCkrq() {
        return ckrq;
    }

    public void setCkrq(Date ckrq) {
        this.ckrq = ckrq;
    }

    @Basic
    @Column(name = "sqsl")
    public Integer getSqsl() {
        return sqsl;
    }

    public void setSqsl(Integer sqsl) {
        this.sqsl = sqsl;
    }

    @Basic
    @Column(name = "clqk")
    public String getClqk() {
        return clqk;
    }

    public void setClqk(String clqk) {
        this.clqk = clqk;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Dbd dbd = (Dbd) o;

        if (dbdid != null ? !dbdid.equals(dbd.dbdid) : dbd.dbdid != null) return false;
        if (type != null ? !type.equals(dbd.type) : dbd.type != null) return false;
        if (pm != null ? !pm.equals(dbd.pm) : dbd.pm != null) return false;
        if (scpc != null ? !scpc.equals(dbd.scpc) : dbd.scpc != null) return false;
        if (sddbsl != null ? !sddbsl.equals(dbd.sddbsl) : dbd.sddbsl != null) return false;
        if (bcdbsl != null ? !bcdbsl.equals(dbd.bcdbsl) : dbd.bcdbsl != null) return false;
        if (ckr != null ? !ckr.equals(dbd.ckr) : dbd.ckr != null) return false;
        if (ckrq != null ? !ckrq.equals(dbd.ckrq) : dbd.ckrq != null) return false;
        if (sqsl != null ? !sqsl.equals(dbd.sqsl) : dbd.sqsl != null) return false;
        if (clqk != null ? !clqk.equals(dbd.clqk) : dbd.clqk != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = dbdid != null ? dbdid.hashCode() : 0;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (pm != null ? pm.hashCode() : 0);
        result = 31 * result + (scpc != null ? scpc.hashCode() : 0);
        result = 31 * result + (sddbsl != null ? sddbsl.hashCode() : 0);
        result = 31 * result + (bcdbsl != null ? bcdbsl.hashCode() : 0);
        result = 31 * result + (ckr != null ? ckr.hashCode() : 0);
        result = 31 * result + (ckrq != null ? ckrq.hashCode() : 0);
        result = 31 * result + (sqsl != null ? sqsl.hashCode() : 0);
        result = 31 * result + (clqk != null ? clqk.hashCode() : 0);
        return result;
    }
}
